package com.echo.usedsfu;

import java.io.IOException;

import javax.jdo.PersistenceManager;
import javax.servlet.http.*;

import com.echo.usedsfu.entity.Category;
import com.echo.usedsfu.entity.Information;
import com.echo.usedsfu.persistence.PMF;

@SuppressWarnings("serial")
public class UsedSFUServlet extends HttpServlet {
	public void doGet(HttpServletRequest req, HttpServletResponse resp)
			throws IOException {
//		PersistenceManager pm = PMF.get().getPersistenceManager();
////		Category cat = new Category("bike");
//		Information info = new Information("used bicycle", "Louis Riel House", "Eric", "this is totally new bike, 24 speed",
//				"604-421-0143", "test@test.ca");
//		try{
//			pm.makePersistent(info);
//		}finally{
//			pm.close();
//		}
		resp.setContentType("text/plain");
		resp.getWriter().println("Hello, world");
	}
}
